<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>业务规则日志明细列表</title>
<link href="../../static/plugin/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/plugin/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<script src="../../static/plugin/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/plugin/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/plugin/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<script type="text/javascript">

	function doAdd(){
		JLEUtil.createModalWin('新增', 'BizRuleLogDetailAdd.html');
	}
	
	function doUpdate() {
		var row = $('#dg').datagrid('getSelected');
		if (row){
			JLEUtil.createModalWin('修改', 'BizRuleLogDetailUpdate.html?' + 'logId=' + row.logId + '&ruleCollId=' + row.ruleCollId);
		} else {
			$.messager.alert('提示','请选择一条记录！','info');
		}
	}
	
	function doDelete(){
		var row = $('#dg').datagrid('getSelected');
		if (row) {
			$.messager.confirm('删除提示', '你确定要删除这条记录?', function(r){
				if (r){
					var jsonData = JSON.parse('{'+'"logId":"' + row.logId + '"' + ','+'"ruleCollId":"' + row.ruleCollId + '"'+'}');
					$.restfulDelete('../../api/biz/rule/log/detail', jsonData, function(data) {
						$.messager.alert('提示','记录删除成功!','info');
						$('#dg').datagrid('reload');
					});
				}
			});
		} else {
			$.messager.alert('提示','请选择一条记录！','info');
		}
	}

	function doView(){
		var row = $('#dg').datagrid('getSelected');
		if (row) {
			JLEUtil.createModalWin('详情','BizRuleLogDetailView.html?' + '&logId=' + row.logId + '&ruleCollId=' + row.ruleCollId);
		} else {
			$.messager.alert('提示','请选择一条记录！','info');
		}
	}	

	function reloadList(){
		$('#dg').datagrid('reload');
		JLEUtil.closewin();
	};	
</script>
<body class="easyui-layout">
<div data-options="region:'north',title:'',minHeight: 100">
	<form id="searchForm">
		<table>
			<tr>
				<td>&nbsp;日志记录标识：</td>
				<td><input name="logId" id="logId"/></td>
				<td>&nbsp;规则集id：</td>
				<td><input name="ruleCollId" id="ruleCollId"/></td>
				<td><a class="easyui-linkbutton" href="javascript:void(0);" onclick="JLEUtil.queryForm('searchForm','dg','../../api/biz/rule/log/details');">查找</a></td>
				<td><a class="easyui-linkbutton" href="javascript:void(0);" onclick="JLEUtil.clearForm('searchForm');">清空</a></td>
			</tr>
		</table>
	</form>
</div>
<div data-options="region:'center',split:false">
<table id="dg" class="easyui-datagrid" title="" style="width:100%;height:100%"
			data-options="singleSelect:true,collapsible:true,url:'../../api/biz/rule/log/details',method:'post'"
			toolbar="#tb"
		title="Load Data" 
		rownumbers="true" pagination="true" pageSize="20">
		<thead>
			<tr>
				<!--<th data-options="field:'logId',resizable:true" >日志记录标识</th>-->
				<th data-options="field:'ruleCollId',resizable:true" >规则集id</th>
				<th data-options="field:'bizSerno',resizable:true" >业务流水号</th>
				<th data-options="field:'ruleId',resizable:true" >规则id</th>
				<th data-options="field:'ruleName',resizable:true" >规则名称</th>
				<th data-options="field:'paramVal',resizable:true" >参数值</th>
				<th data-options="field:'exeVal',resizable:true" >执行值</th>
				<th data-options="field:'exeResult',resizable:true" formatter="formatter_EXE_RESULT">规则执行结果</th>
				<th data-options="field:'ruleExeDt',resizable:true" >规则执行时间</th>
			</tr>
		</thead>
	</table>
</div>
<!--<div id="tb" style="padding:1px">
	<div style="margin-bottom:2px">
		<a href="javascript:doAdd()" class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a>
		<a href="javascript:doUpdate()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a>
		<a href="javascript:doDelete()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
		<a href="javascript:doView()" class="easyui-linkbutton" iconCls="icon-ok" plain="true">查看</a>
	</div>
</div>-->
</body>
</html>
